package factory;

import factory.itf.ISwordFactory;
import factory.model.AbstractSword;
import factory.model.object.CaoCao;
//import factory.model.object.LiuBei;

/**
 * 工厂方法模式
 *
 * @author laigl 2017年7月10日
 *
 */
public class FactoryClient {

	public static void main(String[] args) {
		ISwordFactory factory = null;
		factory = new CaoCao();
		// factory = new LiuBei();
		AbstractSword sword = factory.createSword();
		System.out.println(sword.getName());

	}

}
